const koa = require('koa')
const fs = require('fs')

const app = new koa()

const main = (ctx) => {
     
    ctx.response.type = 'html'
    ctx.body = fs.readFileSync('./assets/template.html')

}

app.use(main)
app.listen(3000, () => {
    console.log('服务启动成功,端口号:3000');
    
}
)


